home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 3706 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  597 b 

  1. Path: news.production.compuserve.com!news
  2. From: ling f. zhen <103115.717@CompuServe.COM>
  3. Newsgroups: comp.lang.c++
  4. Subject: How to define SET type?
  5. Date: 25 Jan 1996 17:47:50 GMT
  6. Organization: SubMicron Systems Inc
  7. Message-ID: <4e8fo6$frn$1@mhafn.production.compuserve.com>
  8.  
  9. After defining:
  10.  
  11. enum Error_Type {Error1,
  12.          Error2,
  13.          Error3};
  14.  
  15. I'd like to define a variable which can contain 0 or all the 
  16. items in the enum list. In Pascal, there is a SET type and let 
  17. you do:
  18.  
  19.  CurrentError : set of Error_Type;
  20.  
  21. How can I can do the similar in C?
  22.  
  23. Thanks for the advice.
  24.  
  25. Ling Zhen
  26. lzhen@subm.com
  27.